function gets(pageNum) {
    var dc=$("#dcid").val();
    var zhaung=$("#zhuangtai").val();
    var pageN = pageNum;
    $.ajax({
            url: '/myspringboot/select/findghs',
            type: 'post',
            dataType: "json",
            data:{
               a:dc,
                b:zhaung,
                pageNum:pageN,
            },

            success:function(result){
                var result = result.data;
                yibu(result.pages,result.pageNum);
                var list = result.list;
                $(".a").empty();
                for (var i = 0; i < list.length; i++){
                    var a =list[i].podiId;
                    var b =list[i].supplier.surName;
                    var c =list[i].podiState;
                    var d =list[i].podiNumber;
                    var e =list[i].podiTotal;
                    var f =list[i].podiDiid;
                    var v ="";
                    if (c==0){
                        v="未发货";
                    }
                    if (c==1){
                        v="已发货";
                    }
                    if (c==2){
                        v="已入库";
                    }
                    if (c==3){
                        v="已结算";
                    }

                    var $tr = '<tr>'+
                        '<td>'+a+'</td>'+
                        '<td>'+b+'</td>'+
                        '<td>'+v+'</td>'+
                        '<td>'+d+'</td>'+
                        '<td>'+e+'</td>'+
                        '<td>'+'<a>查看</a>'+'</td>'+
                        '</tr>'
                    $(".a").append($tr);
                }
            }
        }
    )
}